package br.com.news.utils.database.interfaces;

import java.util.List;

import br.com.news.utils.database.beans.EnqueteBean;
import br.com.news.utils.database.exception.DataBaseServiceException;

public interface IEnqueteServiceDb extends IServiceBaseDb<EnqueteBean, Long>{

	List<EnqueteBean> getLastPool() throws DataBaseServiceException;

	Long save(EnqueteBean enqueteBean) throws DataBaseServiceException;
	
	List<EnqueteBean> findByQuestion(EnqueteBean questao);
	
	List<EnqueteBean> findPollByStatus(boolean status) throws DataBaseServiceException;
	
}
